package com.bestcem.xm.qdes.controller.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @ClassName: QstructsTemplatesParam
 * @Description:
 * @Author: gy.zhang
 * @Date: 2022/8/24 19:41
 */
@Data
public class QstructsTemplatesParam {

    @ApiModelProperty(value = "模板名称")
    @NotBlank(message = "name不能为空", groups = {QstructsTemplatesParamAddGroup.class})
    private String name;

    @ApiModelProperty(value = "题型类型")
    @JsonProperty("custom_qtype")
    @NotBlank(message = "customGtype不能为空", groups = {QstructsTemplatesParamAddGroup.class})
    private String customGtype;

    @ApiModelProperty(value = "题型类型名称")
    @NotBlank(message = "qtypeName不能为空", groups = {QstructsTemplatesParamAddGroup.class})
    private String qtypeName;

    @ApiModelProperty(value = "模板内容")
    @NotBlank(message = "template不能为空", groups = {QstructsTemplatesParamEditGroup.class})
    private String template;

    @ApiModelProperty(value = "应用题目")
    @JsonProperty("qList")
    private List<String> qList;
}
